﻿package control
{
    import com.core.*;

    public class MiniMapControl extends Control
    {

        public function MiniMapControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "minimap")
            {
                if (param2.property == "updateMap")
                {
                    this.target.updateMap(param2.newvalue);
                }
                else if (param2.property == "clear")
                {
                    this.target.clearPath();
                }
                else if (param2.property == "findPath")
                {
                    this.target.findPath(param2.newvalue);
                }
                else if (param2.property == "clearPath")
                {
                    this.target.clearPath();
                }
                else if (param2.property == "eleAdd")
                {
                    this.target.eleAdd(param2.newvalue);
                }
                else if (param2.property == "eleRemove")
                {
                    this.target.eleRemove(param2.newvalue);
                }
                else if (param2.property == "hideSome")
                {
                    this.target.hideSome();
                }
            }
            return;
        }// end function

    }
}
